import 'package:finance_app/generated/json/base/json_convert_content.dart';
import 'package:finance_app/generated/json/base/json_field.dart';
import 'package:finance_app/src/entities/account_entity.dart';
import 'package:finance_app/src/entities/business_contact_entity.dart';

class BankDetailRecordItemEntity with JsonConvert<BankDetailRecordItemEntity> {
  @JSONField(name: "data_type")
  String dataType;
  int id;
  @JSONField(name: "flow_type")
  String flowType;
  String type;
  String name;
  @JSONField(name: "contact_id")
  int contactId;
  BusinessContactEntity contact;
  @JSONField(name: "account_id")
  int accountId;
  @JSONField(name: "to_account_id")
  dynamic toAccountId;
  AccountEntity account;
  @JSONField(name: "to_account")
  dynamic toAccount;
  @JSONField(name: "payment_type_id")
  int paymentTypeId;
  @JSONField(name: "issued_at")
  String issuedAt;
  List<String> numbers;
  @JSONField(name: "number_ids")
  List<int> numberIds;
  @JSONField(name: "currency_code")
  String currencyCode;
  num total;
  @JSONField(name: "cheque_number")
  dynamic chequeNumber;
  @JSONField(name: "related_payment_id")
  dynamic relatedPaymentId;
  @JSONField(name: "related_payment")
  dynamic relatedPayment;
  String status;
  @JSONField(name: "created_at")
  String createdAt;
  @JSONField(name: "updated_at")
  String updatedAt;
  dynamic pivot;
  @JSONField(name: "bank_reconciliation_record_id")
  int bankReconciliationRecordId;
  String number;
}
